<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
     <input type="checkbox" v-for='(item,index) in hobbies' class="hobbies">{{ item.content }}
  </div>
  <script src="../js/vue.js"></script>
  <script>
    const app = new Vue( {
      el: '#app',
      data: {
        username: '',
        age: '',
        phone: '',
        email: '',
        hobbies: [ {
          id: 1,
          content: '看书'
        }, {
          id: 2,
          content: '写作业'
        }, {
          id: 3,
          content: '玩手机'
        } ]
      }
    } )
  </script>
</body>
</html>